<!DOCTYPE html>
<html>
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		Skyboard Panel<?= empty($title_for_layout) ? '' : ': ' . $title_for_layout; ?>
	</title>
	<?php
		echo $this->Html->meta('icon');

		echo $this->Html->css('style');
        echo $this->Html->css('jquery-ui/style');
        
        echo $this->Html->script('jquery-2.0.0.min');
        echo $this->Html->script('jquery-ui-datepicker-sr');
        echo $this->Html->script('jquery-ui-1.10.3.min');
        echo $this->Html->script('script.asset');

		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
	?>
</head>
<body>
    <header>
        <div id="logo"><?= $this->Html->image('skyboard.png', array(
            'url'  => '/',
            'alt'  => 'SkyBoard.rs'
        )) ?></div>
        
        <div id="menu"><?= $this->element('menu') ?></div>
        
        <?= $this->element('user_box') ?>
    </header>
    <section id="content">
        <?= $this->Session->flash(); ?>

        <?= $this->fetch('content'); ?>
    </section>
    <? if(@$_GET['debug']): ?>
        <?= $this->element('sql_dump'); ?>
    <? endif ?>
</body>
</html>
